package com.qrxl.user.vo.req;

import com.qrxl.common.EnumValue;
import com.qrxl.enums.EnumSysFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "用户更新请求参数", description = "请求参数类")
public class UserUpdateReq {

    @NotNull(message = "id不能为空")
    @ApiModelProperty(value = "id", required = true)
    private String id;
    @Length(message = "姓名长度 大于{max}字符", max = 20)
    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "md5加密")
    private String password;


    @ApiModelProperty(value = "启停状态：EnumSysFlag")
    @EnumValue(enumClass = EnumSysFlag.class, message = "启停状态不合法")
    private Integer validFlag;
}
